libxl/gentypes: fix generating array of enums
authorWei Liu <wei.liu2@citrix.com>
Mon, 2 Oct 2017 11:48:28 +0000 (12:48 +0100)
committerWei Liu <wei.liu2@citrix.com>
Wed, 4 Oct 2017 10:09:46 +0000 (11:09 +0100)
commita71a96a41e273f3943119965a8cb75550cca6ba8
treeaa8b63b8c98045293c3abead8e46eff854c6f98e
parent7efab948acd1c1092b1a9e7b3be2a97389911bc5
libxl/gentypes: fix generating array of enums

There is no reason to hardcode "x" in code. Use "w" which is passed
by the higher level.

This change requires us to allow "x" to be unused so that the
top-level enum parse_json functions continue to compile.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/gentypes.py